//
//  DPad.h
//  FunnyRacing
//
//  Created by vy phan on 16/03/2011.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "cocos2d.h"

@interface DPad : CCLayer {
	CCSpriteSheet *spriteSheet;
	int direction;
	CCMenuItem* dpadDown;
	CCMenuItem* dpadUp;
	CCMenuItem* dpadRight;
	CCMenuItem* dpadLeft;
	CCMenu* menu;
}
@property (readwrite) int direction;
- (void)keyDownPressed:(id)sender;
- (void)keyUpPressed:(id)sender;
- (void)keyLeftPressed:(id)sender;
- (void)keyRightPressed:(id)sender;
- (void)keyReleased:(id)sender;
@end
